<%@ page language="java" import="java.util.*,com.ncp.model.biz.product.*,com.ncp.model.entity.product.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
ArrayList al=new ProductManager().getAllProduct();
int l=al.size();
%>
<base href="<%=basePath%>">
<div id="block">
	<%
	for(int i=l-1;i>l-7;i--){
		ProductBasicIndex pb=(ProductBasicIndex)al.get(i);  
		%>
		<div class="demo_img left">
		<a href="ManageFrontzDetailProductServlet?ProductID=<%=pb.getProductID()%>">
			<img src="<%=pb.getProductImage() %>" widht="128" height="112"/>
		</a>
		</div>
		<%
	}
	%>
</div>
